@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="salesInfoForm">

            <input type="hidden" id="id" value="">
            <div class="row">
                <div class="col-sm-3">
                    <#select id="location" name="地区">
                        <option value="1">重庆</option>
                        <option value="2">北京</option>
                    </#select>
                </div>
                <div class="col-sm-3">
                    <#input name="部门" id="departs" readonly="readonly" hidden="deptid"
                    clickFun="FundBudgetApplySalesInfoDlg.showDeptSelectTree(); return false;"
                    style="background-color: #ffffff !important;"/>
                </div>
                <div class="col-sm-15">
                    <table class="table table-bordered" id="para_table">
                        <tr>
                            <th style="text-align:center">科目</th>
                            <th style="text-align:center">项目名称</th>
                            <th style="text-align:center">客户名称</th>
                            <th style="text-align:center">预算金额</th>
                            <th style="text-align:center">资金使用用途说明及核算标准</th>
                            <th style="text-align:center">操作</th>
                        </tr>
                        <tr class="salesContent" id="0">
                            <td class="col-md-6">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <input class="form-control" id="subject" name="subject0" type="text" readonly="readonly" onclick="FundBudgetApplySalesInfoDlg.showSubjectSelectTree(this); return false;" style="background-color: #ffffff !important;">
                                        <input class="form-control" type="hidden" id="subjectid" name="subjectid0">
                                    </div>
                                </div>
                            </td>
                            <td class="col-md-6">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <select class='form-control' id="project" name="project0">
                                        </select>
                                        <input class="form-control" type="hidden" id="projectid" name="projectid0"/>
                                    </div>
                                </div>
                            </td>
                            <td class="col-md-6">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <input class="form-control" type="text" id="customername" name="customername0"/>
                                    </div>
                                </div>
                            </td>
                            <td class="col-md-6">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <input class="form-control" type="text" id="totalfee" value="0" name="totalfee0"/>
                                    </div>
                                </div>
                            </td>
                            <td class="col-md-6">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <input class="form-control" type="text" id="description" name="description0"/>
                                    </div>
                                </div>
                            </td>
                            <td class="col-md-6">
                                <#button type="button" icon="fa-minus" name="删除" clickFun="FundBudgetApplySalesInfoDlg.deleteRow(this, 'add', 0)"/>
                            </td>
                        </tr>
                    </table>
                </div>
                    <div id="addtrdiv" style="margin-top:-15px; width: 15%; float: right;">
                        <#button btnCss="primary" icon="fa-plus" name="添加" clickFun="FundBudgetApplySalesInfoDlg.addRow()"/>
                    </div>
                </div>
                <!-- 这是部门选择的下拉框 -->
                <div id="menuContent" class="menuContent"
                     style="display: none; position: absolute; z-index: 200;">
                    <ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
                </div>
                <!-- 这是科目选择的下拉框 -->
                <div id="subjectContent" class="menuContent"
                     style="display: none; position: absolute; z-index: 200;">
                    <ul id="treeSubjectDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
                </div>
                <div class="row btn-group-m-t">
                    <div class="col-sm-10">
                        <#button btnCss="primary" name="保存" id="ensure" icon="fa-check" clickFun="FundBudgetApplySalesInfoDlg.saveSubmit()"/>
                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="FundBudgetApplySalesInfoDlg.addSubmit()"/>
                        <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="FundBudgetApplySalesInfoDlg.goBack()"/>
                    </div>
                </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/biz/apply/budget/apply/fundBudgetApplySales_info.js"></script>
@}
